﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Plane:Vehicle,IFlyable
    {
        public string Name { get; set; }
        public int zaike { get; set; }
        public Plane(string Name,int zaike)
        {
            this.Name = Name;
            this.zaike = zaike;
        }


        public void Fly()
        {
            Console.WriteLine("{0}在飞", this.Name);
            }
        public void Land()
            {
            Console.WriteLine("{0}降落!!!", this.Name);
        }
        public void TakeOff()
        {
            Console.WriteLine("{0}起飞",this.Name);
        }
        public void Carrypassange()
        {
            Console.WriteLine("{0}载客人数为{1}",this.Name,this.zaike);
        }
    }
}
